import request from '@/utils/request'
import axios from 'axios'

/**
 * 获取导航卡片下部分信息
 * @returns 
 */
export const getInfoService = () => {
    return request.get('/user/home/nav/bar')
}

/**
 * 获取所有标签信息
 * @returns 
 */
export const getTagsService = () => {
    return request.get('/user/home/tags')
}

/**
 * 查询今日更新文章
 * @returns 
 */
export const getTodayUpdateService = () => {
    return request.get('/user/home/today/update')
}

/**
 * 获取ip信息
 */
export const getUserIpService = () => {
    return axios.get('https://api.vore.top/api/IPdata')
}